
<div class="nav_menu">
  <nav>
    <div class="nav toggle">
      <a id="menu_toggle"><i class="fa fa-bars"> </i></a>
    </div>
    <ul class="nav navbar-nav navbar-right">
      <li class="">
        <span class=" fa fa-angle-down">

          {if condition="$Think.session.username neq null"}
          <br />
            <li><a href="{:url('login/session')}"><input type="button" class="btn btn-info btn" value="退出"></a></li>
            <li><div id="div" style="margin-top:10px;  font-size:25px; color: transparent; background-color : black;text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px; -webkit-background-clip : text;"></div></li>
            {else /}
              <li><button><a href="{:url('login/login')}">登 录</a></button></li>
              <li><button><a href="">注 册</a></button></li>
          {/if}
        </span>
        <ul class="dropdown-menu dropdown-usermenu pull-right">
          <li><a href="javascript:;"> Profile</a></li>
          <li>
            <a href="javascript:;">
              <span class="badge bg-red pull-right">50%</span>
              <span>Settings</span>
            </a>
          </li>
          <li><a href="javascript:;">Help</a></li>
          <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
        </ul>
      </li> 
    </ul>
  </nav>
</div>
<script>
    var i=0;
    function myDate(){
        var now=new Date();
        var year=now.getFullYear();
        var month=now.getMonth()+1;
        var day=now.getDate();
        var hours=now.getHours();
        var minutes=now.getMinutes();
        var seconds=now.getSeconds();
        document.getElementById("div").innerHTML=year+"年"+month+"月"+day+"日"+hours+"："+minutes+"："+seconds;
    }
    setInterval(myDate,1000);
</script>